//
//  UIView+Common.m
//  project-demo-oc
//
//  Created by 赵隆杰 on 2021/10/15.
//

#import "UIView+Common.h"

@implementation UIView (Common)

- (void)addRadiusOfImage:(CGFloat)radius inView:(UIView *)view
{
    UIImageView *imageView = [[UIImageView alloc] init];
    imageView.backgroundColor = view.backgroundColor;
    [view addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(view);
    }];
    UIImage *image = [UIImage imageNamed:@""];
    [image imageWithRadius:radius ofSize:CGSizeMake(100, 100)];
    imageView.image = image;
}

@end
